//
//  MyPhotoView.h
//  SmartRoadShow
//
//  Created by Tracy E on 10-9-26.
//  Copyright 2010 simonwang142232@gmail.com. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ImageDownloader.h"

@class OpenWaitView;
@class RS3ViewController;

@class SmartRoadShowAppDelegate;
@interface MyPhotoView : UIView <UITextFieldDelegate, UITableViewDelegate, UITableViewDataSource, ImageReceiver>{
	
	UIImageView *imageView;
	
	UILabel *placeLabel;
	UILabel *timeLabel;
	
	UITextField *nameField;
	UITextField *phoneField;
	NSString *selectedCity;
	
	NSMutableArray *stationArr;
	
	UIButton *stationButton;
	
	UIView *joinView;
	
	NSInteger tag;
	
	UITableView *myTableView;
	BOOL flag;
		
	RS3ViewController* rs3VC;
	
	NSString *newsId;
	NSString* city;
	NSString* time;
	
	UIButton *star;
	BOOL buttonState;
	
	NSInteger leftCityCount;
	NSMutableArray *leftCityArr;
	
	SmartRoadShowAppDelegate *appDelegate;
	
	//标识添加或取消关注
	BOOL ifConcern;
	
	NSString *notiTime; //本地通知的时间字符串
	
	UIActivityIndicatorView *downloadWait;
		
	BOOL result; //比较现在时间和活动时间的结果,如过期则不显示我要参加按钮
	NSUserDefaults *noti;
	
}
@property (nonatomic) NSInteger tag;
@property (nonatomic, retain) RS3ViewController* rs3VC;
@property (nonatomic, retain) NSString* city;
@property (nonatomic, retain) NSString* time;
@property (nonatomic) NSInteger leftCityCount;

//-(void)getStationArr:(NSArray *)arr;

- (id)initWithFrame:(CGRect)frame From:(NSInteger) from Stations:(NSMutableArray *)array CurrentStation:(NSInteger) index;
-(void)setImage:(NSString *)imageURL; 
-(void)setPlaceLabelText:(NSString *)text;
-(void)setTimeLabelText:(NSString *)text;
- (void)setLeftCityCount:(NSInteger)count;
- (void)setPushID:(NSString *)_newsId City:(NSString *)City Time:(NSString *)Time;

@end
